Repository navigation
fix(server): preserve one-shot cooldown bypasses - #108
Merged
chrisohearn merged 3 commits intoNov 13, 2026
Merged
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #88's delta review, specifically its
fastModeP2 and all three P3 findings: automatic runs consuming pending picks, repeated scheduled bypass while queued runs remain held, and missing dispatch-side scheduled-pick and multi-continuation tests.Ordinary web sends could bypass an account cooldown because
fastMode: falsediffered from an omitted option. Automatic runs could consume a pending explicit pick, while a lingering scheduled pick could bypass repeatedly.Changes
draftModelPickMatchesThread, so Fast off and unset mean the same thing in either direction.Verification
Head
bb1c50cd59ef4b2ffc58ae2e117f9cd41fd347ea, including fresh integration56e297dccc5bc07cce51e273c35c933e50ecfb4c. The integration merge changed only host-guard files, not the checked runtime source. Pushed without force.All 23 focused tests pass: 15 provider-switch/routing/failover cases, 3 runtime cases covering scheduled picks, multiple old-model server continuations, two notification wakes and delegated completions, and 5 failover/cooldown unit cases. Scoped formatting, lint and diff checks pass on the four changed files. Every heavy command used the shared lock, and Vitest used two workers with no file parallelism.
Five regression cases failed before the fix at the intended assertions: Fast off versus omitted in both directions, a repeated direct scheduled send with a held queue, a notification consuming the pick, and a queued delegated completion consuming it. Existing test cases and tables were extended; no new test file was added.
Hosted CI is the typecheck gate. Local dependencies remain stale after the upstream merge, as already diagnosed and accepted by the coordinator; no reinstall or unrelated type repair was attempted.
Acceptance commands
These isolated tests use replay adapters and temporary state, not the live database or paid provider turns. Run from the repository root:
Implemented with GPT-6.1 Sol in Codex CLI.